import request from '@/utils/request'

const aiVoiceApi = {
    /**
     * 语音配置详情
     */
    detail(): Promise<any> {
        return request.get({
            url: '/setting/ai/voice/detail'
        })
    },

    /**
     * 语音配置保存
     */
    save(params: {
        speech: any;
        transfer: any;
    }): Promise<any> {
        return request.post({
            url: '/setting/ai/voice/save',
            params
        })
    }
}

export default aiVoiceApi
